#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from paste.script import templates
import subprocess
import os

class GlobenetTemplate(templates.Template):
		egg_plugins = ['globenet']
		summary = 'Template for creating a basic globenet package'
		#required_templates = ['tinyaspect>=0.']
		_template_dir = 'template'
		use_cheetah = True

		def post(self, command, output_dir, vars):
			subprocess.Popen(['python','bootstrap.py','--no-site-packages','env'], cwd=output_dir)

			
